//<![CDATA[
jQuery.noConflict();
				
                jQuery('ul.nav').superfish({ 
                        delay:       200,                            // one second delay on mouseout 
                        animation:   {opacity:'show',height:'show'},  // fade-in and slide-down animation 
                        speed:       'fast',                          // faster animation speed 
                        autoArrows:  true,                           // disable generation of arrow mark-up 
                        dropShadows: false                            // disable drop shadows 
                }); 
		
                jQuery('ul.nav > li > a.sf-with-ul').parent('li').addClass('sf-ul');
		
                var primaryMenuWidth = jQuery("ul#primary").width();
                var primaryMenuLeft = Math.round((960 - primaryMenuWidth) / 2);
                if (primaryMenuWidth < 960) jQuery("ul#primary").css('padding-left',primaryMenuLeft);
		
                var secondaryMenuWidth = jQuery("ul#secondary").width();
                var secondaryMenuLeft = Math.round((960 - secondaryMenuWidth) / 2);
                if (secondaryMenuWidth < 960) jQuery("ul#secondary").css('padding-left',secondaryMenuLeft);
		
                var $smallTag = jQuery('span.price2 span');
                $smallTag.each(function(){
                   var divWidth = (jQuery(this).parents('div.thumbnail').length) ? jQuery(this).parents('div.thumbnail').width() : jQuery(this).parents('div#product-slider').width(),
                          tagWidth = jQuery(this).innerWidth(),
                          leftPos = Math.round((divWidth-tagWidth)/2);
			  
			  
                   jQuery(this).parent().css({left: leftPos});
                });
		
                var $featuredTag = jQuery('span.price span');
                $featuredTag.each(function(){
                   var divWidth = jQuery(this).parents('div.slide-info').width(),
                          tagWidth = jQuery(this).innerWidth(),
                          leftPos = Math.round((divWidth-tagWidth)/2)-3;
			  
                   jQuery(this).parent().css({left: leftPos});
                });
		
				
                var $featured_slides = jQuery('#slides'),
                        $controllers = jQuery('#controllers'),
                        controller_item = 'a.smallthumb',
                        right_arrow = 'a#right-arrow',
                        left_arrow = 'a#left-arrow',
                        movearrow = true;
			
                if ($featured_slides.length) et_cycle_integration();	
                et_search_bar();
		
                <!---- Featured Slider Cycle Integration ---->
                function et_cycle_integration(){
                        $featured_slides.cycle({
                                fx: 'fade',
                                timeout: 0,
                                speed: 300,
                                cleartypeNoBg: true
                        });
                }
		
                <!---- Search Bar Improvements ---->
                function et_search_bar(){
                        var $searchform = jQuery('#search-container'),
                                $searchinput = $searchform.find("input#searchinput"),
                                searchvalue = $searchinput.val();
				
                        $searchinput.focus(function(){
                                if (jQuery(this).val() === searchvalue) jQuery(this).val("");
                        }).blur(function(){
                                if (jQuery(this).val() === "") jQuery(this).val(searchvalue);
                        });
                }
			
		
                <!-- single page slider -->
							
                if (jQuery('#product-slides').length) {
                        jQuery('#product-slides').cycle({
                                fx: 'fade',
                                timeout: 0,
                                speed: 700,
                                cleartypeNoBg: true
                        });
			
                        $featured_slides = jQuery('#product-slides'),
                        $controllers = jQuery('#smallthumbs'),
                        controller_item = ('a.small-controller'),
                        right_arrow = 'a#right-arrow',
                        left_arrow = 'a#left-arrow',
                        movearrow = false;
                };
		
                function move_arrow(activeObject){
                        var arrowPosition = activeObject.position().left + 18;
                        jQuery('span#active-arrow').animate({left: arrowPosition}, 400);
                }
		
                $controllers.find(controller_item).click(function(){
			
                        $controllers.find('a.active').removeClass('active');
			
                        jQuery(this).addClass('active');
			
                        if (movearrow) move_arrow(jQuery(this));
			
                        var ordernum = jQuery(this).prevAll(controller_item).length;
			
                        $featured_slides.cycle(ordernum);
			
                        if (typeof interval != 'undefined') {
                                clearInterval(interval);
                                auto_rotate();
                        };
			
                        return false;
                })
		
		
                jQuery(right_arrow + ',' + left_arrow).click(function(){
					
                        if ( jQuery(this).attr('id') === 'right-arrow' )
                                var ordernum = $controllers.find('a.active').prevAll(controller_item).length + 1;
                        else
                                var ordernum = $controllers.find('a.active').prevAll(controller_item).length - 1;
			
                        $controllers.find('a.active').removeClass('active');
			
                        if ( !$controllers.find(controller_item+':eq('+ ordernum +')').length ) {
                                if ( jQuery(this).attr('id') === 'right-arrow' )
                                        ordernum = 0;
                                else 
                                        ordernum = $controllers.find(controller_item).length-1;
                        }
			
                        $controllers.find(controller_item+':eq('+ ordernum +')').addClass('active');
			
                        if (movearrow) move_arrow($controllers.find('a.active'));
			
                        $featured_slides.cycle(ordernum);
			
                        if (typeof interval != 'undefined') {
                                clearInterval(interval);
                                auto_rotate();
                        };
			
                        return false;
                });
		
                                        if (movearrow) {
                                function auto_rotate(){
                                        interval = setInterval(function() {
                                                jQuery(right_arrow).click();
                                        }, 3000);
                                }
				
                                auto_rotate();
                        }
				
        //]]>